﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dycox.Workflows.Events
{
    public class StartProcessProcessor : StageEventProcessor
    {

        protected internal override bool IsScenarioSupported(EventScenario scenario)
        {
            return scenario == EventScenario.StepFinished;
        }

        protected override void ProcessCore(WFStep step, EventScenario scenario)
        {
            WorkflowManager.GetWorkflow(step).Control.ActivateProcess(step);
        }
    }
}
